package cn.imnu.legalaid.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 咨询消息表
 * @TableName consultations_messages
 */
@TableName(value ="consultations_messages")
@Data
public class ConsultationsMessages {
    /**
     * 咨询消息表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 咨询表id
     */
    @TableField(value = "consultation_id")
    private Integer consultation_id;

    /**
     * 上传人id
     */
    @TableField(value = "sender_id")
    private Integer sender_id;

    /**
     * 信息类型
     */
    @TableField(value = "message_type")
    private Object message_type;

    /**
     * 内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 文件url
     */
    @TableField(value = "file_url")
    private String file_url;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private LocalDateTime created_at;

    /**
     * 是否阅读
     */
    @TableField(value = "Is_read")
    private Integer is_read;
}